home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 4
/
FM Towns Free Software Collection 4 - Disc 1.iso
/
pao
/
towns
/
cdplay
/
src
/
word.c
< prev
next >
Wrap
Text File
|
1991-10-18
|
15KB
|
374 lines
/* << High C V1.4 >> **********************************************************
**
** CD PLAYER 用 文字データ と 7ポ文字表示ルーチン
**
** 1991.03.19 : CREATE
** 1991.03.19 : FINISH
**
** < HISTORY >
** 1991.03.19 : CREATE
** 1991.03.26 : 7ポ文字表示関数の追加
** 1991.03.28 : 9ポ文字表示関数の追加
**
** < note > : TABS = 4
**
** All Rights Reserved, Copyright (C) Y.Hirata 1991.
**
** Programmed by Y.Hirata ( Nifty ID : NAB03321 )
**
** Spetial thanks : ただひろ(K.Shimizu)
**
******************************************************************************/
#include <string.h>
#include <egb.h>
#include "cdpn.h"
#include "grp.h"
char WORD_exit[3*7] = {
0x1e,0x8a,0xf8,
0x10,0x8a,0x20,
0x10,0x52,0x20,
0x1c,0x22,0x20,
0x10,0x52,0x20,
0x10,0x8a,0x20,
0x1e,0x8a,0x20
} ;
char WORD_program[3*7] = {
0x39,0xc6,0x30,
0x25,0x29,0x48,
0x25,0x29,0x48,
0x39,0xc9,0x40,
0x21,0x49,0x58,
0x21,0x29,0x48,
0x21,0x26,0x32
} ;
char WORD_single[3*7] = {
0x65,0x26,0x47,
0x95,0x29,0x44,
0x85,0xa9,0x44,
0x65,0x68,0x47,
0x15,0x6b,0x44,
0x95,0x29,0x44,
0x65,0x26,0x77
} ;
char WORD_continue[3*7] = {
0x18,0xc9,0x7c,
0x25,0x29,0x10,
0x25,0x2d,0x10,
0x21,0x2b,0x10,
0x25,0x2b,0x10,
0x25,0x29,0x10,
0x18,0xc9,0x12
} ;
char WORD_7p[95][1*7] = {
{ 0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, /* space */
{ 0x40,0x40,0x40,0x40,0x40,0x00,0x40 }, /* ! */
{ 0x50,0x50,0x00,0x00,0x00,0x00,0x00 }, /* " */
{ 0x50,0xf8,0x50,0x50,0x50,0xf8,0x50 }, /* # */
{ 0x20,0x78,0xa0,0x70,0x28,0xf0,0x20 }, /* $ */
{ 0xc0,0xc8,0x10,0x20,0x40,0x98,0x18 }, /* % */
{ 0x60,0x90,0xa0,0x40,0xa8,0x90,0x68 }, /* & */
{ 0x20,0x40,0x00,0x00,0x00,0x00,0x00 }, /* ' */
{ 0x08,0x10,0x10,0x10,0x10,0x10,0x08 }, /* ( */
{ 0x80,0x40,0x40,0x40,0x40,0x40,0x80 }, /* ) */
{ 0x00,0x20,0xa8,0x70,0x70,0xa8,0x20 }, /* * */
{ 0x00,0x20,0x20,0xf8,0x20,0x20,0x00 }, /* + */
{ 0x00,0x00,0x00,0x00,0x20,0x20,0x40 }, /* , */
{ 0x00,0x00,0x00,0xf8,0x00,0x00,0x00 }, /* - */
{ 0x00,0x00,0x00,0x00,0x00,0x40,0x00 }, /* . */
{ 0x00,0x08,0x10,0x20,0x40,0x80,0x00 }, /* / */
{ 0x70,0x88,0x98,0xa8,0xc8,0x88,0x70 }, /* 0 */
{ 0x20,0x60,0x20,0x20,0x20,0x20,0x70 }, /* 1 */
{ 0x70,0x88,0x88,0x10,0x20,0x40,0xf8 }, /* 2 */
{ 0x70,0x88,0x08,0x30,0x08,0x88,0x70 }, /* 3 */
{ 0x10,0x30,0x50,0x90,0xf8,0x10,0x10 }, /* 4 */
{ 0xf8,0x80,0xf0,0x08,0x08,0x88,0x70 }, /* 5 */
{ 0x70,0x88,0x80,0xf0,0x88,0x88,0x70 }, /* 6 */
{ 0xf8,0x88,0x10,0x10,0x20,0x20,0x20 }, /* 7 */
{ 0x70,0x88,0x88,0x70,0x88,0x88,0x70 }, /* 8 */
{ 0x70,0x88,0x88,0x78,0x08,0x88,0x70 }, /* 9 */
{ 0x00,0x20,0x00,0x00,0x00,0x20,0x00 }, /* : */
{ 0x00,0x20,0x00,0x00,0x00,0x20,0x40 }, /* ; */
{ 0x00,0x20,0x40,0x80,0x40,0x20,0x00 }, /* < */
{ 0x00,0x00,0xf8,0x00,0xf8,0x00,0x00 }, /* = */
{ 0x00,0x80,0x40,0x20,0x40,0x80,0x00 }, /* > */
{ 0x70,0x88,0x08,0x10,0x20,0x00,0x20 }, /* ? */
{ 0x70,0x88,0x98,0xa8,0xa8,0xb8,0x48 }, /* @ */
{ 0x20,0x50,0x88,0x88,0xf8,0x88,0x88 }, /* A */
{ 0xF0,0x88,0x88,0xF0,0x88,0x88,0xF0 }, /* B */
{ 0x70,0x88,0x80,0x80,0x80,0x88,0x70 }, /* C */
{ 0xE0,0x90,0x88,0x88,0x88,0x90,0xE0 }, /* D */
{ 0xF8,0x80,0x80,0xF0,0x80,0x80,0xF8 }, /* E */
{ 0xF8,0x80,0x80,0xF0,0x80,0x80,0x80 }, /* F */
{ 0x70,0x88,0x80,0x80,0x98,0x88,0x70 }, /* G */
{ 0x88,0x88,0x88,0xF8,0x88,0x88,0x88 }, /* H */
{ 0x70,0x20,0x20,0x20,0x20,0x20,0x70 }, /* I */
{ 0xF8,0x10,0x10,0x10,0x10,0x90,0x60 }, /* J */
{ 0x88,0x90,0xA0,0xC0,0xA0,0x90,0x88 }, /* K */
{ 0x80,0x80,0x80,0x80,0x80,0x80,0xF8 }, /* L */
{ 0x88,0x88,0xD8,0xA8,0xA8,0x88,0x88 }, /* M */
{ 0x88,0x88,0xC8,0xA8,0x98,0x88,0x88 }, /* N */
{ 0x70,0x88,0x88,0x88,0x88,0x88,0x70 }, /* O */
{ 0xF0,0x88,0x88,0xF0,0x80,0x80,0x80 }, /* P */
{ 0x70,0x88,0x88,0x88,0xA8,0x90,0x68 }, /* Q */
{ 0xF0,0x88,0x88,0xF0,0xA0,0x90,0x88 }, /* R */
{ 0x70,0x88,0x80,0x70,0x08,0x88,0x70 }, /* S */
{ 0xF8,0x20,0x20,0x20,0x20,0x20,0x20 }, /* T */
{ 0x88,0x88,0x88,0x88,0x88,0x88,0x70 }, /* U */
{ 0x88,0x88,0x88,0x88,0x50,0x50,0x20 }, /* V */
{ 0x88,0x88,0xA8,0xA8,0xA8,0x50,0x50 }, /* W */
{ 0x88,0x88,0x50,0x20,0x50,0x88,0x88 }, /* X */
{ 0x88,0x88,0x50,0x50,0x20,0x20,0x20 }, /* Y */
{ 0xF8,0x08,0x10,0x20,0x40,0x80,0xF8 }, /* Z */
{ 0x18,0x10,0x10,0x10,0x10,0x10,0x18 }, /* [ */
{ 0x88,0x50,0xF8,0x20,0xF8,0x20,0x20 }, /* \ */
{ 0xC0,0x40,0x40,0x40,0x40,0x40,0xC0 }, /* ] */
{ 0x20,0x50,0x00,0x00,0x00,0x00,0x00 }, /* ^ */
{ 0x00,0x00,0x00,0x00,0x00,0x00,0xF8 }, /* _ */
{ 0x20,0x10,0x00,0x00,0x00,0x00,0x00 }, /* ` */
{ 0x00,0x70,0x08,0x78,0x88,0x98,0x68 }, /* a */
{ 0x80,0x80,0xf0,0x88,0x88,0x88,0x70 }, /* b */
{ 0x00,0x00,0x70,0x80,0x80,0x80,0x70 }, /* c */
{ 0x08,0x08,0x78,0x88,0x88,0x88,0x78 }, /* d */
{ 0x00,0x00,0x70,0x88,0xf8,0x80,0x70 }, /* e */
{ 0x18,0x20,0x20,0x78,0x20,0x20,0x20 }, /* f */
{ 0x00,0x78,0x88,0x88,0x78,0x08,0x70 }, /* g */
{ 0x80,0x80,0xb0,0xc8,0x88,0x88,0x88 }, /* h */
{ 0x00,0x20,0x00,0x20,0x20,0x20,0x20 }, /* i */
{ 0x00,0x10,0x00,0x10,0x10,0x90,0x60 }, /* j */
{ 0x80,0x80,0x90,0xa0,0xc0,0xa0,0x90 }, /* k */
{ 0x20,0x20,0x20,0x20,0x20,0x20,0x30 }, /* l */
{ 0x00,0x00,0x50,0xa8,0xa8,0xa8,0xa8 }, /* m */
{ 0x00,0x00,0xa0,0xd0,0x90,0x90,0x90 }, /* n */
{ 0x00,0x00,0x70,0x88,0x88,0x88,0x70 }, /* o */
{ 0x00,0xb0,0xc8,0x88,0xc8,0xb0,0x80 }, /* p */
{ 0x00,0x68,0x98,0x88,0x98,0x68,0x08 }, /* q */
{ 0x00,0xa0,0xd0,0x80,0x80,0x80,0x80 }, /* r */
{ 0x00,0x00,0x70,0x80,0x70,0x08,0x70 }, /* s */
{ 0x20,0x20,0xf8,0x20,0x20,0x28,0x10 }, /* t */
{ 0x00,0x00,0x90,0x90,0x90,0x90,0x70 }, /* u */
{ 0x00,0x00,0x88,0x88,0x88,0x50,0x20 }, /* v */
{ 0x00,0x00,0x88,0xa8,0xa8,0xa8,0x50 }, /* w */
{ 0x00,0x00,0x88,0x50,0x20,0x50,0x88 }, /* x */
{ 0x00,0x00,0x88,0x50,0x20,0x20,0x20 }, /* y */
{ 0x00,0x00,0xf8,0x10,0x20,0x40,0xf8 }, /* z */
{ 0x08,0x10,0x10,0x30,0x10,0x10,0x08 }, /* { */
{ 0x20,0x20,0x20,0x20,0x20,0x20,0x20 }, /* | */
{ 0x80,0x40,0x40,0x60,0x40,0x40,0x80 }, /* } */
{ 0xf8,0x00,0x00,0x00,0x00,0x00,0x00 } /* ~ */
} ;
char WORD_9p[95][1*9] = {
{ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, /* space */
{ 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x00,0x20 }, /* ! */
{ 0x50,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, /* " */
{ 0x50,0x50,0xf8,0x50,0x50,0x50,0xf8,0x50,0x50 }, /* # */
{ 0x20,0x78,0xa0,0xa0,0x70,0x28,0x28,0xf0,0x20 }, /* $ */
{ 0xc8,0xc8,0x10,0x10,0x20,0x40,0x40,0x98,0x98 }, /* % */
{ 0x60,0x90,0x90,0xa0,0x40,0xa8,0x90,0x90,0x68 }, /* & */
{ 0x20,0x20,0x40,0x00,0x00,0x00,0x00,0x00,0x00 }, /* ' */
{ 0x08,0x10,0x20,0x20,0x20,0x20,0x20,0x10,0x08 }, /* ( */
{ 0x80,0x40,0x20,0x20,0x20,0x20,0x20,0x40,0x80 }, /* ) */
{ 0x00,0x20,0xa8,0x70,0xf8,0x70,0xa8,0x20,0x00 }, /* * */
{ 0x00,0x20,0x20,0x20,0xf8,0x20,0x20,0x20,0x00 }, /* + */
{ 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x40 }, /* , */
{ 0x00,0x00,0x00,0x00,0xf8,0x00,0x00,0x00,0x00 }, /* - */
{ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40 }, /* . */
{ 0x00,0x08,0x08,0x10,0x10,0x20,0x20,0x40,0x40 }, /* / */
{ 0x70,0x88,0x88,0x98,0xa8,0xc8,0x88,0x88,0x70 }, /* 0 */
{ 0x20,0x60,0x20,0x20,0x20,0x20,0x20,0x20,0x70 }, /* 1 */
{ 0x70,0x88,0x88,0x08,0x10,0x20,0x40,0x80,0xf8 }, /* 2 */
{ 0x70,0x88,0x88,0x08,0x30,0x08,0x88,0x88,0x70 }, /* 3 */
{ 0x10,0x30,0x30,0x50,0x50,0x90,0x90,0xf8,0x10 }, /* 4 */
{ 0xf8,0x80,0x80,0xf0,0x08,0x08,0x88,0x88,0x70 }, /* 5 */
{ 0x70,0x88,0x80,0xf0,0x88,0x88,0x88,0x88,0x70 }, /* 6 */
{ 0xf8,0x88,0x08,0x08,0x10,0x10,0x20,0x20,0x20 }, /* 7 */
{ 0x70,0x88,0x88,0x88,0x70,0x88,0x88,0x88,0x70 }, /* 8 */
{ 0x70,0x88,0x88,0x88,0x88,0x78,0x08,0x88,0x70 }, /* 9 */
{ 0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00 }, /* : */
{ 0x00,0x00,0x20,0x00,0x00,0x20,0x20,0x40,0x00 }, /* ; */
{ 0x00,0x10,0x20,0x40,0x80,0x40,0x20,0x10,0x00 }, /* < */
{ 0x00,0x00,0x00,0xf8,0x00,0xf8,0x00,0x00,0x00 }, /* = */
{ 0x00,0x80,0x40,0x20,0x10,0x20,0x40,0x80,0x00 }, /* > */
{ 0x70,0x88,0x88,0x08,0x10,0x20,0x20,0x00,0x20 }, /* ? */
{ 0x70,0x88,0x98,0xa8,0xa8,0xa8,0xb8,0x88,0x48 }, /* @ */
{ 0x20,0x50,0x88,0x88,0x88,0xF8,0x88,0x88,0x88 }, /* A */
{ 0xF0,0x88,0x88,0x88,0xF0,0x88,0x88,0x88,0xF0 }, /* B */
{ 0x70,0x88,0x88,0x80,0x80,0x80,0x88,0x88,0x70 }, /* C */
{ 0xE0,0x90,0x88,0x88,0x88,0x88,0x88,0x90,0xE0 }, /* D */
{ 0xF8,0x80,0x80,0x80,0xF0,0x80,0x80,0x80,0xF8 }, /* E */
{ 0xF8,0x80,0x80,0x80,0xF0,0x80,0x80,0x80,0x80 }, /* F */
{ 0x70,0x88,0x88,0x80,0x80,0x98,0x88,0x88,0x70 }, /* G */
{ 0x88,0x88,0x88,0x88,0xF8,0x88,0x88,0x88,0x88 }, /* H */
{ 0x70,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x70 }, /* I */
{ 0xF8,0x10,0x10,0x10,0x10,0x10,0x10,0x90,0x60 }, /* J */
{ 0x88,0x88,0x90,0xA0,0xC0,0xA0,0x90,0x88,0x88 }, /* K */
{ 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0xF8 }, /* L */
{ 0x88,0x88,0xD8,0xD8,0xA8,0xA8,0xA8,0x88,0x88 }, /* M */
{ 0x88,0x88,0xC8,0xC8,0xA8,0x98,0x98,0x88,0x88 }, /* N */
{ 0x70,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x70 }, /* O */
{ 0xF0,0x88,0x88,0x88,0xF0,0x80,0x80,0x80,0x80 }, /* P */
{ 0x70,0x88,0x88,0x88,0x88,0x88,0xA8,0x90,0x68 }, /* Q */
{ 0xF0,0x88,0x88,0x88,0xF0,0xA0,0x90,0x88,0x88 }, /* R */
{ 0x70,0x88,0x88,0x80,0x70,0x08,0x88,0x88,0x70 }, /* S */
{ 0xF8,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20 }, /* T */
{ 0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x70 }, /* U */
{ 0x88,0x88,0x88,0x88,0x88,0x88,0x50,0x50,0x20 }, /* V */
{ 0x88,0x88,0xA8,0xA8,0xA8,0xA8,0xA8,0x50,0x50 }, /* W */
{ 0x88,0x88,0x50,0x50,0x20,0x50,0x50,0x88,0x88 }, /* X */
{ 0x88,0x88,0x50,0x50,0x20,0x20,0x20,0x20,0x20 }, /* Y */
{ 0xF8,0x08,0x10,0x10,0x20,0x40,0x40,0x80,0xF8 }, /* Z */
{ 0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x38 }, /* [ */
{ 0x88,0x50,0x20,0xf8,0x20,0xf8,0x20,0x20,0x20 }, /* \ */
{ 0xe0,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xe0 }, /* ] */
{ 0x20,0x50,0x50,0x00,0x00,0x00,0x00,0x00,0x00 }, /* ^ */
{ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf8 }, /* _ */
{ 0x20,0x20,0x10,0x00,0x00,0x00,0x00,0x00,0x00 }, /* ` */
{ 0x00,0x00,0x70,0x08,0x78,0x88,0x88,0x98,0x68 }, /* a */
{ 0x80,0x80,0x80,0xb0,0xc8,0x88,0x88,0xc8,0xb0 }, /* b */
{ 0x00,0x00,0x70,0x88,0x80,0x80,0x80,0x88,0x70 }, /* c */
{ 0x08,0x08,0x08,0x78,0x88,0x88,0x88,0x98,0x68 }, /* d */
{ 0x00,0x00,0x70,0x88,0x88,0xf8,0x80,0x88,0x70 }, /* e */
{ 0x10,0x28,0x20,0x20,0xf8,0x20,0x20,0x20,0x20 }, /* f */
{ 0x70,0x88,0x88,0x88,0x98,0x68,0x08,0x88,0x70 }, /* g */
{ 0x80,0x80,0x80,0xb0,0xc8,0x88,0x88,0x88,0x88 }, /* h */
{ 0x00,0x00,0x20,0x00,0x20,0x20,0x20,0x20,0x20 }, /* i */
{ 0x00,0x00,0x10,0x00,0x10,0x10,0x10,0x90,0x60 }, /* j */
{ 0x80,0x80,0x88,0x90,0xa0,0xc0,0xa0,0x90,0x88 }, /* k */
{ 0x20,0x60,0x20,0x20,0x20,0x20,0x20,0x30,0x20 }, /* l */
{ 0x00,0x00,0xd0,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8 }, /* m */
{ 0x00,0x00,0xb0,0xc8,0x88,0x88,0x88,0x88,0x88 }, /* n */
{ 0x00,0x00,0x70,0x88,0x88,0x88,0x88,0x88,0x70 }, /* o */
{ 0xb0,0xc8,0x88,0x88,0xc8,0xb0,0x80,0x80,0x80 }, /* p */
{ 0x68,0x98,0x88,0x88,0x98,0x68,0x08,0x08,0x08 }, /* q */
{ 0x00,0x00,0xb0,0xc8,0x80,0x80,0x80,0x80,0x80 }, /* r */
{ 0x00,0x00,0x70,0x88,0x80,0x70,0x08,0x88,0x70 }, /* s */
{ 0x20,0x20,0xf8,0x20,0x20,0x20,0x20,0x28,0x10 }, /* t */
{ 0x00,0x00,0x88,0x88,0x88,0x88,0x88,0x98,0x68 }, /* u */
{ 0x00,0x00,0x88,0x88,0x88,0x88,0x88,0x50,0x20 }, /* v */
{ 0x00,0x00,0x88,0x88,0xa8,0xa8,0xa8,0x50,0x50 }, /* w */
{ 0x00,0x00,0x88,0x88,0x50,0x20,0x50,0x88,0x88 }, /* x */
{ 0x88,0x88,0x88,0x88,0x78,0x08,0x08,0x88,0x70 }, /* y */
{ 0x00,0x00,0xf8,0x08,0x10,0x20,0x40,0x80,0xf8 }, /* z */
{ 0x08,0x10,0x10,0x10,0x20,0x10,0x10,0x10,0x08 }, /* { */
{ 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20 }, /* | */
{ 0x80,0x40,0x40,0x40,0x20,0x40,0x40,0x40,0x80 }, /* } */
{ 0xf8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 } /* ~ */
} ;
/************************** 7ポのANK文字列表示 *****************************/
void WORD_put7p( char *egbwork,int x,int y,int f_color,int b_color,char *s )
/*=============================================================================
** 7ポイントのANK文字列を表示する.
**
** < INPUT > : x 表示開始水平座標
** : y 表示開始垂直座標
** : f_color 文字色
** : b_color 背景色
** : s 文字列
** < OUTPUT > : なし
** < RETURN > : なし
**
** 5 * 7 ドット のANK文字列を表示する.
** 「"」,「\」等は、printf()同様 \マーク を重ねること.
=============================================================================*/
{
struct _ANKFONT {
short int left ;
short int up ;
short int length ;
char font[1] ;
} af ;
int c, len ;
int p ;
len = strlen( s ) ;
EGB_writeMode( Gwork,PSET ) ;
EGB_paintMode( egbwork,0x20 ) ;
EGB_color( egbwork,2,b_color ) ;
box( egbwork,x,y+1,x+len*(YCDOT7P-1)-1,y+YCDOT7P ) ;
EGB_textZoom( egbwork,1,XCDOT,YCDOT7P ) ;
EGB_textSpace( egbwork,(-2) ) ;
EGB_color( egbwork,0,f_color ) ;
af.left = x ;
af.up = y + YCDOT7P ;
af.length = ZERO ;
af.font[0] = 0x00 ; /* NULL設定 */
EGB_paintMode( egbwork,0x02 ) ;
EGB_sjisString( egbwork,(char *)&af ) ; /* 表示開始位置の設定 */
for ( c=0; c<len; c++ ) {
if ( (0x19<s[c]) && (s[c]<0x7f) ) {
p = s[c] - ' ' ;
if ( p >= ZERO ) {
EGB_anyChar( egbwork,XCDOT,YCDOT7P,WORD_7p[p] ) ;
}
}
}
EGB_textSpace( egbwork,ZERO ) ;
EGB_textZoom( egbwork,1,XCDOT+XCDOT,YCDOT ) ;
}
/************************** 9ポのANK文字列表示 *****************************/
void WORD_put9p( char *egbwork,int x,int y,int f_color,int b_color,char *s )
/*=============================================================================
** 7ポイントのANK文字列を表示する.
**
** < INPUT > : x 表示開始水平座標
** : y 表示開始垂直座標
** : f_color 文字色
** : b_color 背景色
** : s 文字列
** < OUTPUT > : なし
** < RETURN > : なし
**
** 5 * 9 ドット のANK文字列を表示する.
** 「"」,「\」等は、printf()同様 \マーク を重ねること.
=============================================================================*/
{
struct _ANKFONT {
short int left ;
short int up ;
short int length ;
char font[1] ;
} af ;
int c, len ;
int p ;
len = strlen( s ) ;
EGB_writeMode( Gwork,PSET ) ;
EGB_paintMode( egbwork,0x20 ) ;
EGB_color( egbwork,2,b_color ) ;
box( egbwork,x,y+1,x+len*(YCDOT9P-1)-1,y+YCDOT9P ) ;
EGB_textZoom( egbwork,1,XCDOT,YCDOT9P ) ;
EGB_textSpace( egbwork,(-2) ) ;
EGB_color( egbwork,0,f_color ) ;
af.left = x ;
af.up = y + YCDOT9P ;
af.length = ZERO ;
af.font[0] = 0x00 ; /* NULL設定 */
EGB_paintMode( egbwork,0x02 ) ;
EGB_sjisString( egbwork,(char *)&af ) ; /* 表示開始位置の設定 */
for ( c=0; c<len; c++ ) {
if ( (0x19<s[c]) && (s[c]<0x7f) ) {
p = s[c] - ' ' ;
if ( p >= ZERO ) {
EGB_anyChar( egbwork,XCDOT,YCDOT9P,WORD_9p[p] ) ;
}
}
}
EGB_textSpace( egbwork,ZERO ) ;
EGB_textZoom( egbwork,1,XCDOT+XCDOT,YCDOT ) ;
}